package com.mjk.datasource.model;

import com.mjk.common.base.model.BaseEntity;
import com.mjk.common.core.jdbc.annotation.ArcSharding;
import com.mjk.common.core.jdbc.annotation.ExampleField;
import com.mjk.common.core.jdbc.annotation.Filed;
import com.mjk.common.core.jdbc.annotation.Id;
import lombok.Data;

import java.sql.Clob;

@Data
@ArcSharding(dataSource = "test", table = "custom_datasource",userName = "dictmanage")
public class CustomDatasourceModel extends BaseEntity {

    @Id
    @ExampleField
    private String id;
    @Filed(comment = "分组标识",lenght = 255,cloum = "groupKey")
    private java.lang.String groupKey;
    @Filed(comment = "大字段",lenght = 255,cloum = "json")
    private Clob json;

}